import request from '@/utils/request'

// 查询项目列列表
export function listProject(query) {
  return request({
    url: '/carbon/project/list',
    method: 'get',
    params: query
  })
}

// 查询个人项目列表
export function selectProjectByUser() {
  return request({
    url: '/carbon/project/selectProjectByUser',
    method: 'get',
  })
}


// 查询项目列详细
export function getProject(projectId) {
  return request({
    url: '/carbon/project/' + projectId,
    method: 'get'
  })
}

// 新增项目列
export function addProject(data) {
  return request({
    url: '/carbon/project',
    method: 'post',
    data: data
  })
}

// 修改项目列
export function updateProject(data) {
  return request({
    url: '/carbon/project',
    method: 'put',
    data: data
  })
}

// 删除项目列
export function delProject(projectId) {
  return request({
    url: '/carbon/project/' + projectId,
    method: 'delete'
  })
}

// 导出项目列
export function exportProject(query) {
  return request({
    url: '/carbon/project/export',
    method: 'get',
    params: query
  })
}

// 固体
export function solidFuelList(query) {
  return request({
    url: '/solid/fuel/list',
    method: 'get',
    params: query
  })
}

// 固体新增
export function solidFuelAdd(data) {
  return request({
    url: '/solid/fuel',
    method: 'post',
    data: data
  })
}
// 固体修改
export function solidFuelupdate(data) {
  return request({
    url: '/solid/fuel',
    method: 'put',
    data: data
  })
}

// 固体删除
export function delSolidFuel(id) {
  return request({
    url: '/solid/fuel/' + id,
    method: 'delete'
  })
}
// 导出固体
export function exportSolid(query) {
  return request({
    url: '/solid/fuel/export',
    method: 'get',
    params: query
  })
}

// 保存上传数据 固体
export function solidChangeData(data) {
  return request({
    url: '/solid/fuel/changeData',
    method: 'post',
    data: data
  })
}



// 液体
export function liquidFuelList(query) {
  return request({
    url: '/liquid/fuel/list',
    method: 'get',
    params: query
  })
}

export function liquidFuelAdd(data) {
  return request({
    url: '/liquid/fuel',
    method: 'post',
    data: data
  })
}
export function liquidFuelUpdate(data) {
  return request({
    url: '/liquid/fuel',
    method: 'put',
    data: data
  })
}

// 液体删除
export function delliquidFuel(id) {
  return request({
    url: '/liquid/fuel/' + id,
    method: 'delete'
  })
}
// 导出液体
export function exportLiquid(query) {
  return request({
    url: '/eleLoad/engineering/export',
    method: 'get',
    params: query
  })
}

// 保存上传数据 液体
export function liquidChangeData(data) {
  return request({
    url: '/liquid/fuel/changeData',
    method: 'post',
    data: data
  })
}




// 气体
export function gasFuelList(query) {
  return request({
    url: '/gas/fuel/list',
    method: 'get',
    params: query
  })
}

// 气体新增
export function gasFuelAdd(data) {
  return request({
    url: '/gas/fuel',
    method: 'post',
    data: data
  })
}
export function gasFuelupdata(data) {
  return request({
    url: '/gas/fuel',
    method: 'put',
    data: data
  })
}

// 气体删除
export function delgasFuel(id) {
  return request({
    url: '/gas/fuel/' + id,
    method: 'delete'
  })
}

// 导出气体
export function exportGas(query) {
  return request({
    url: '/gas/fuel/export',
    method: 'get',
    params: query
  })
}

// 保存上传数据 气体
export function gasChangeData(data) {
  return request({
    url: '/gas/fuel/changeData',
    method: 'post',
    data: data
  })
}


// 脱硫
export function sulfurEmissionList(query) {
  return request({
    url: '/sulfur/emission/list',
    method: 'get',
    params: query
  })
}

export function sulfurEmissionAdd(data) {
  return request({
    url: '/sulfur/emission',
    method: 'post',
    data: data
  })
}
// 查询随机因子或量
export function getFossilFuelParametersList(query) {
  return request({
    url: '/solid/fuel/getFossilFuelParameters',
    method: 'get',
    params: query
  })
}
export function getSulfurEmissionParametersList(query) {
  return request({
    url: '/sulfur/emission/getSulfurEmissionParameters',
    method: 'get',
    params: query
  })
}

// 爆破过程排放计算
export function getcalBlastEmission(query) {
  return request({
    url: '/blast/emission/calBlastEmission',
    method: 'get',
    params: query
  })
}
// 碳交易
export function getcalculateCarbonVolume(query) {
  return request({
    url: '/carbon/trade/calculateCarbonVolume',
    method: 'get',
    params: query
  })
}
// 碳交易ccer
export function getcalculateCcerVolume(query) {
  return request({
    url: '/ccer/trade/calculateCarbonVolume',
    method: 'get',
    params: query
  })
}
// 直接释放计算
export function getcalDirectRelease(query) {
  return request({
    url: '/direct/release/calDirectRelease',
    method: 'get',
    params: query
  })
}
// 电力排放计算
export function getcalEleEmission(query) {
  return request({
    url: '/ele/emission/calEleEmission',
    method: 'get',
    params: query
  })
}
// 气体燃料计算
export function getcalGasFuel(query) {
  return request({
    url: '/gas/fuel/calGasFuel',
    method: 'get',
    params: query
  })
}
// 绿化碳汇计算
export function getcalGreenCarbon(query) {
  return request({
    url: '/greenCarbon/sink/calGreenCarbon',
    method: 'get',
    params: query
  })
}
// 购买绿证碳汇计算
export function getcalGreenCertificate(query) {
  return request({
    url: '/green/certificate/calGreenCertificate',
    method: 'get',
    params: query
  })
}

// 热力排放计算
export function getcalHeatEmission(query) {
  return request({
    url: '/heat/emission/calHeatEmission',
    method: 'get',
    params: query
  })
}

// 液体燃料计算
export function getcalLiquidFuel(query) {
  return request({
    url: '/liquid/fuel/calLiquidFuel',
    method: 'get',
    params: query
  })
}

// 脱硝排放计算
export function getcalNitreEmission(query) {
  return request({
    url: '/nitre/emission/calNitreEmission',
    method: 'get',
    params: query
  })
}

// 回收利用碳汇计算
export function getcalRecyclingCarbon(query) {
  return request({
    url: '/recycling/carbon/calRecyclingCarbon',
    method: 'get',
    params: query
  })
}

// 固体燃料计算
export function getcalSolidFuel(query) {
  return request({
    url: '/solid/fuel/calSolidFuel',
    method: 'get',
    params: query
  })
}

// 脱硫排放计算
export function getcalSulfurEmission(query) {
  return request({
    url: '/sulfur/emission/calSulfurEmission',
    method: 'get',
    params: query
  })
}

// 切焊加热计算
export function getcalWeldHeatEmission(query) {
  return request({
    url: '/weldHeat/emission/calWeldHeatEmission',
    method: 'get',
    params: query
  })
}
